package com.linq.cool.beauty.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: yqlin
 * @Date: 2021/2/6 12:51
 * @Description: 汽车美容项目品牌
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_brand")
public class BeautyBrand extends BaseEntity {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "品牌名称不能为空")
    @TableField(value = "`name`")
    private String name;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 品牌标志
     */
    @NotBlank(message = "品牌标志不能为空")
    @TableField(value = "logo")
    private String logo;

    /**
     * 显示，1是0否
     */
    @NotNull(message = "显示状态不能为空")
    @TableField(value = "status")
    private Integer status;
    /**
     * 品牌描述
     */
    @TableField(value = "b_desc")
    private String bDesc;
}